<h3 class="dialog_title"><span><?php echo $title?></span></h3>
<div class="dialog_content" style="width: 700px">
<form id="jbtSearchFrm" action="<?php echo site_url(array('utils','searchDialog','jabatan', 'search')) ?>">
	<div style="border-bottom: 1px solid #CCC; padding: 10px;">
		<input type="hidden" name="offset" value="" /> 
		<input type="hidden" name="limit" value="<?php echo $limit?>" />
		<input type="hidden" name="orderby" value="" />
		<input type="hidden" name="where" value="<?php echo $where?>" />
		<input type="hidden" name="return_fields" value="<?php echo $return_fields?>" />
		<input type="hidden" name="submit_action" value="<?php echo $submit_action?>" />
		<input type="hidden" name="cancel_action" value="<?php echo $cancel_action?>" />
		<input type="hidden" name="back_action" value="<?php echo $back_action?>" />
		<table>
			<tr valign="middle">
				<td width="50">Search :</td>
				<td><input type="text" name="key" value="" onkeyup="Utils.searchDialog.search($(this).getParent('form'))" /></td>
			</tr>
		</table>
		<table id="jbtSearchFrm_table" class="zebraable" cellpadding="5" cellspacing="0" width="100%">
			<tr class="header">
				<td width="120px">Kode Jabatan</td>
				<td>Jabatan</td>
				<td>Departemen</td>
				<td>Level</td>
				<td></td>
			</tr>
			<tbody id="jbtSearchFrm_tableContent">
				<?php 
					$zebra=0;
					if ($data->num_rows() > 0):
						foreach($data->result_array() as $ch):
					?>
						<tr <?php if ($zebra++%2==1):?> class="zebra" <?php endif?> 
							onmouseover="$(this).getElements('input[class:buttonSmall]').setStyle('visibility','visible')"
							onmouseout="$(this).getElements('input[class:buttonSmall]').setStyle('visibility','hidden')">
						<td><?php echo $ch['jbt_id']?></td>
						<td><?php echo $ch['jbt_nama']?></td>
						<td><?php echo $ch['dep_nama']?></td>
						<td><?php echo $ch['jbt_supervisi']?></td>
						<td align="right">
							<input class="buttonSmall" type="button" style="font-size: 14px; visibility:hidden;" value="&#62;" 
								onclick="<?php echo $submit_action?>(<?php $z=0; foreach (explode(",",$return_fields) as $dd): 
									echo ($z>0?"," : "")."'$ch[$dd]'"; $z++;
								endforeach?>)" title="Choose" />
						</td>
						</tr>
					<?php 
						endforeach;
					else:
					?><tr><td align="center" colspan="2">Tidak ada data</td></tr><?php 
					endif;?>
			</tbody>
		</table>
		
		<div style="margin-top: 10px; margin-right: 6px" align="right">
			<div id="jbtSearchFrm_pagination" class="pagination" style="display: inline;"></div>
		</div>
	</div>
	<div class="dialog_buttons" style="padding: 12px 10px">
		<?php if ($back_action):?>
		<input class="button" type="button" value="Back" onclick="<?php echo $back_action?>()" />
		<?php endif?>
		<input class="button" type="button" value="Cancel" onclick="<?php if ($cancel_action): echo $cancel_action; else:?>FBModal_hide()<?php endif?>" />
	</div>
</form>
</div>